<?php
return [
    'components' => [
//        'db' => [
//            'class' => 'yii\db\Connection',
//            'dsn'   => 'mysql:host=101.132.71.154;dbname=funfind',
//            'username' => 'root',
//            'password' => 'zxcvb@12345',
//            'charset' => 'utf8',
//        ],
//        'db_funfind' => [
//            'class' => 'yii\db\Connection',
//            'dsn'   => 'mysql:host=101.132.71.154;dbname=bx',
//            'username' => 'root',
//            'password' => 'zxcvb@12345',
//            'charset' => 'utf8',
//        ],
//        'db_kgb' => [
//            'class' => 'yii\db\Connection',
//            'dsn' => 'mysql:host=101.132.71.154;dbname=bx',
//            'tablePrefix' => 'qx_',
//            'username' => 'root',
//            'password' => 'zxcvb@12345',
//            'charset' => 'utf8',
//        ],
         'db' => [
             'class' => 'yii\db\Connection',
             'dsn'   => 'mysql:host=ff-mysql-01.mysql.rds.aliyuncs.com;dbname=funfind',
             // 'dsn'   => 'mysql:host=rm-bp1778uw53t17r57ro.mysql.rds.aliyuncs.com;dbname=funfind',
             'username' => 'root',
             'password' => '23mLyV6xkhLbUsKb',
             'charset' => 'utf8',
         ],
         'db_funfind' => [
             'class' => 'yii\db\Connection',
             'dsn'   => 'mysql:host=ff-mysql-01.mysql.rds.aliyuncs.com;dbname=ffdb',
             // 'dsn'   => 'mysql:host=rm-bp1778uw53t17r57ro.mysql.rds.aliyuncs.com;dbname=ffdb',
             'username' => 'root',
             'password' => '23mLyV6xkhLbUsKb',
             'charset' => 'utf8',
         ],
        'db_kgb' => [
            'class' => 'yii\db\Connection',
            'dsn'   => 'mysql:host=ff-mysql-01.mysql.rds.aliyuncs.com;dbname=ffdb',
            // 'dsn'   => 'mysql:host=rm-bp1778uw53t17r57ro.mysql.rds.aliyuncs.com;dbname=ffdb',
            'tablePrefix' => 'qx_',
            'username' => 'root',
            'password' => '23mLyV6xkhLbUsKb',
            'charset' => 'utf8',
        ],
        'mailer' => [
            'class' => 'yii\swiftmailer\Mailer',
            'viewPath' => '@common/mail',
            'useFileTransport' => true,
        ],
        // 'redis' => [
        //     'class' => 'yii\redis\Connection',
        //     'hostname' => '101.132.71.154',
        //     'connectionTimeout' => 10,
        //     'port' => 6379,
        //     'database' => 0,
        // ],
    ],
];